import request from '../utils/request';
export const deptmentData = query => {
    return request({
        url: '/api/srm/label/doMain',
        method: 'post',
        // url: './json/deptmentlist.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/srm/label/doAdd',
        method: 'post',
        // url: './json/true.json',
        // method: 'get',
        data: query,
    });
};
export const doUpdate = query => {
    return request({
        url: '/api/srm/label/doUpdate',
        method:'post',
        // url: './json/errow.json',
        // method: 'get',
        data: query
    });
};
export const doDelete = query => {
    return request({
        url: '/api/srm/label/doDelete',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        params: query
    });
};
//查询一个技术分类的基本信息
export const selectBylabelId = query => {
    return request({
        url: '/api/srm/label/selectById',
        method:'post',
        // url:'./json/deptmentone.json',
        // method: 'get',
        params: query
    });
};
//查询所有科室
export const selectAllLable = query => {
    return request({
        url: '/api/srm/label/doAll',
        method:'post',
        // url:'./json/deptmentlist.json',
        // method: 'get',
        params: query
    });
};


